package com.hui.service;

import com.hui.dao.mapper.RoleMapper;
import com.hui.entity.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class RoleService {
    @Autowired
    private RoleMapper roleMapper;

    public Set<String> loadRoleIdByUsername(String username) {
        return roleMapper.loadRoleIdByUsername(username);
    }

    public Integer save(Role role){
       return roleMapper.insert(role);
    }
}
